<%@ page contentType="text/html; charset=UTF-8" %>
<%@include file="../init.jsp"%>

<table class="right_panel" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td><img src="<spring:url value="/img/caption_bg_left.png"/>"/></td>
        <td align="center" width="100%" style="background: url(<spring:url value="/img/caption_bg.png"/>) repeat-x;">
            <div style="position: relative;">
                <img style="position: absolute; top: -8px; left: 0px;" src="<spring:url value="/img/note.png"/>"/>
            </div>
            <h2 style="margin:0px;">Запись на прием</h2>
        </td>
        <td ><img src="<spring:url value="/img/caption_bg_right.png"/>"/></td>
    </tr>
    <tr>
        <td  style="background: #EBECEC;"></td>
        <td style="background: #EBECEC;">
            <div style="margin-top: 5px;">
                <form action="<spring:url value="/appointments"/>" method="POST">
                    <p>Ваше имя</p>
                    <input id="appointment_name" name="name" type="text"/>
                    <p>Телефон</p>
                    <input id="appointment_phone" name="phone" type="text"/>
                    <p>E-mail</p>
                    <input id="appointment_email" name="email" type="text"/>
                    <p>Планируемая дата и время визита</p>
                    <input id="appointment_data" name="timestamp" type="text"/>
                    <p>Цель визита</p>
                    <textarea id="appointment_message" name="message" rows="5"></textarea>
                    <div class="g-recaptcha" data-sitekey="6Lf7YQITAAAAACfORegYHsNyqd16eKfmafsMU5wz"></div>
                    <input type="submit" value="Отправить" <%--onclick="send_appointment_email()"--%>/>
                </form>
            </div>
        </td>
        <td style="background: #EBECEC;"></td>
    </tr>
    <tr>
        <td><img src="<spring:url value="/img/sw_grey.png"/>"/></td>
        <td style="background: #EBECEC;"></td>
        <td style="background: #EBECEC;"></td>
    </tr>
</table>